﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title></title>
<link href="../inc/js/swfupload/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../inc/js/swfupload/swfupload.js"></script>
<script type="text/javascript" src="../inc/js/swfupload/swfupload.queue.js"></script>
<script type="text/javascript" src="../inc/js/swfupload/fileprogress.js"></script>
<script type="text/javascript" src="../inc/js/swfupload/handler_zh-cn.js"></script>
    
    
    
    <script type="text/javascript" src="../inc/js/jquery-1.7.1.min.js?2011.7.21"></script>
    <script type="text/javascript" src="../inc/js/jsformcheck/js.js?2011.7.21"></script>
    <script type="text/javascript" src="../inc/js/browser.js?2011.7.21"></script>
    <script type="text/javascript" src="../inc/js/jquery.form.js?2011.7.21"></script>
    <script type="text/javascript" src="../inc/js/forms.js?2011.7.21"></script>
    <script type="text/javascript" src="../inc/js/cookie.js?2011.7.21"></script>
    <script type="text/javascript" src="../inc/js/browser.js?2011.7.21"></script>
    <script type="text/javascript" src="../inc/js/ajax.js?2011.7.21"></script>
    <script type="text/javascript" src="../inc/js/jquery-ui-1.8.18.custom/js/jquery-ui-1.8.18.custom.min.js"></script>

    <script type="text/jscript">
    var upload1
    function uploadSuccess__callback(file,serverData)
    {
        window.parent.uploadSuccess__callback(file,serverData);
    }
    
    window.onload=function()
    {
     	upload1 = new SWFUpload({
            // File Upload Settings
            upload_url: "upload.aspx",
            file_size_limit : "<%=core.setting.get("uploadallowmaxfilesize").ToString()%>",     //单位k
            file_types : "*.<%=core.setting.get("uploadallowimageextname").Replace(",",";*.")%>",
            file_types_description : "选择单张图片",
            file_upload_limit : 1,
            file_queue_limit : 1,
		    // Event Handler Settings (all my handlers are in the Handler.js file)
		    file_dialog_start_handler : fileDialogStart,
		    file_queued_handler : fileQueued,
		    file_queue_error_handler : fileQueueError,
		    file_dialog_complete_handler : fileDialogComplete,
		    upload_start_handler : uploadStart,
		    upload_progress_handler : uploadProgress,
		    upload_error_handler : uploadError,
		    upload_success_handler : uploadSuccess,
		    upload_complete_handler : uploadComplete,

            // Button Settings
            button_image_url : "../inc/js/swfupload/XPButtonSelect.png",
            button_placeholder_id : "spanButtonPlaceholder1",
            button_width: 61,
            button_height: 22,
        	
            // Flash Settings
            flash_url : "../inc/js/swfupload/swfupload.swf",
            flash9_url : "../inc/js/swfupload/swfupload_fp9.swf",
    		
		    swfupload_element_id : "flashUI1",		// Setting from graceful degradation plugin
		    degraded_element_id : "degradedUI1",	// Setting from graceful degradation plugin

		    custom_settings : {
			    progressTarget : "fsUploadProgress1",
			    cancelButtonId : "btnCancel1"
		    },
    		
		    // Debug Settings
		    debug: false
	    });   
    }

    
    </script>
</head>
<body>
	    <form id="form1" method="post" enctype="multipart/form-data">
		    <table id="uploadtable1" class="uploadtable">
			    <tr valign="top">
				    <td>
					    <div>
						    <div class="fieldset flash" id="fsUploadProgress1">
							    <span class="legend">信息附图(列表附图)</span>
						    </div>
						    <div style="padding-left: 5px;">
							    <span id="spanButtonPlaceholder1"></span>
						    </div>
					    </div>
				    </td>
				</tr>
			    <tr>
			        <td>
			            <input id="btnCancel1" type="button" value="取消上传" onclick="cancelQueue(upload1);" disabled="disabled" />
			        </td>
			    </tr>
		    </table>
	    </form>
</body>
</html>
